/*
 * This file (RxValuedSaturate.java) is protected by the GNU GPL licence (v2). 
 * Please read the license.txt attached for further informations. 
 * 
 */

package alkwarel.filters;

import alkwarel.objects.RxSimpleFilter;

/**
 * @author Xavier Gouchet
 *
 */
public class RxValuedSaturate extends RxSimpleFilter {

	/**
	 * standard Constructor
	 */
	public RxValuedSaturate() {
		super(1020, "valuedsaturate");
	}


	/**
	 * @see alkwarel.objects.RxSimpleFilter#FilterPixel()
	 */
	protected void FilterPixel() {
		this.S(this.ssat + ((1000-this.ssat)*(255-this.vval)/255));
	}

}
